import 'package:check_io/models/habit.dart';
import 'package:equatable/equatable.dart';

///习惯列表状态
class HabitsState extends Equatable {
  const HabitsState();

  @override
  // TODO: implement props
  List<Object?> get props => [];
}

///正在加载习惯列表，显示习惯列表
class HabitsLoadInProgress extends HabitsState {}

///习惯加载完成，显示习惯列表
class HabitsLoadSuccess extends HabitsState {
  final List<Habit> habits;

  const HabitsLoadSuccess(this.habits);

  @override
  // TODO: implement props
  List<Object?> get props => [habits];
}

///习惯加载失败，显示异常UI
class HabitsLoadFailure extends HabitsState {}